import request from '@/utils/request'

// 查询生产销售日报记录列表
export function listSalereport(query) {
  return request({
    url: '/app/salereport/list',
    method: 'get',
    params: query
  })
}

// 查询生产销售日报记录详细
export function getSalereport(id) {
  return request({
    url: '/app/salereport/' + id,
    method: 'get'
  })
}

// 新增生产销售日报记录
export function addSalereport(data) {
  return request({
    url: '/app/salereport',
    method: 'post',
    data: data
  })
}

// 修改生产销售日报记录
export function updateSalereport(data) {
  return request({
    url: '/app/salereport',
    method: 'put',
    data: data
  })
}

// 删除生产销售日报记录
export function delSalereport(id) {
  return request({
    url: '/app/salereport/' + id,
    method: 'delete'
  })
}

// a产量数据字典
export function dictionlist(params) {
    return request({
      url: '/app/diction/list',
      method: 'get',
      params
    })
  }